import request from '@/utils/request'

const prix_api_url = `/api/hosp/hospital`
export default{
    //查询医院列表
    getPageList(page,limit,obj){
        return request({
            url:`${prix_api_url}/findHospitalList/${page}/${limit}`,
            method:'get',
            params:obj
        })
    },
    getByHosname(hosname){
        return request({
            url:`${prix_api_url}/findByHospName/${hosname}`,
            method:'get'
        })
    },
    show(hoscode) {
        return request({
            url: `${prix_api_url}/findHospitalDetail/${hoscode}`,
            method: 'get'
        })
    },
    findDepartment(hoscode) {
        return request({
            url: `${prix_api_url}/department/${hoscode}`,
            method: 'get'
        })
    },
    getBookingScheduleRule(page, limit, hoscode, depcode) {
        return request({
            url: `${prix_api_url}/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
            method: 'get'
        })
    },
    findScheduleList(hoscode, depcode, workDate) {
        return request({
            url: `${prix_api_url}/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
            method: 'get'
        })
    },
    getSchedule(id) {
        return request({
          url: `${prix_api_url}/getSchedule/${id}`,
          method: 'get'
        })
        }
}